package com.money.tracker.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.money.tracker.auth.entity.SysMenu;
import com.money.tracker.auth.entity.rsp.RouterRsp;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 菜单权限表 服务类
 * </p>
 *
 * @author zhangshuai
 * @since 2024-09-28
 */
public interface ISysMenuService extends IService<SysMenu> {

    /**
     * 根据用户ID查询权限
     *
     * @param userId
     * @return {@link Set }<{@link String }>
     */

    Set<String> getMenuPermissionByUserId(Long userId);

    /**
     * 获取路由配置信息
     *
     * @return {@link List }<{@link RouterRsp }>
     */

    List<RouterRsp> getRouters();
}
